package socklib

import "io"

//数据封包接口
type FrameFactory interface {
	//构建Frame
	BuildFrame(data []byte) []byte
	//从流中读取1Frame数据
	ReadFrame(reader io.Reader) ([]byte, error)
}
